home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 March
/
Chip_2002-03_cd1.bin
/
zkuste
/
delphi
/
kolekce
/
d3456
/
gmprintsuite_eval.exe
/
{app}
/
GmErrors.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
2002-01-02
|
1KB
|
47 lines
unit GmErrors;
interface
uses Dialogs, classes;
const
// GmPreview errors...
PAGE_SIZE_NOT_FOUND = 'Page size not found.';
PAGE_OUT_OF_RANGE = 'Page is out of range.';
INDEX_OUT_OF_RANGE = 'Printer index is out of range.';
NO_PRINTER_SELECTED = 'No printer selected';
PRINTING_IN_PROGRESS = 'Unable to initialise printer... Printing in progress.';
INVALID_SHADOW_WIDTH = 'Invalid shadow width...'+#13+#13+'Value must be in range (1-20)';
// GmThumbnails errors...
THUMB_SIZE_INVALID = 'Thumbnail size must be in the range 1-20.';
// GmGridPrint errors...
ERROR = 'Error...';
PREVIEW_NOT_ASSIGNED = 'Preview property not assigned.';
NO_PREVIEW_ASSIGNED = 'You must assign the TGmGridPrint component to a'+#13+
'GmPreview component before calling this function.';
FILE_NOT_FOUND = 'File not found.';
CANT_READ_VERSION = 'Unable to read file version.';
CANT_OPEN_FILE = 'Unable to open file';
// General errors...
procedure ShowGmError(Sender: TComponent; AError: string);
implementation
procedure ShowGmError(Sender: TComponent; AError: string);
begin
MessageDlg(Sender.ClassName+' Error...' + #13 + #13 + AError, mtInformation, [mbOk], 0);
end;
end.